* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

html {
    scroll-behavior: smooth;

}

.bg {
    width: 100%;
    height: 100%;
    background-image: url(../img/background.webp);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100%;
    opacity: 0.8;
    z-index: -99;
    position: fixed;
}

.box-center {
    width: 1280px;
    margin: 0 auto;
}

.cartTable {
    width: 930px;
    margin: 150px auto;
    background: #eeee;

    table {
        width: 930px;
        border-collapse: collapse;
        text-align: center;
    }

    thead {
        tr {
            th {
                height: 30px;
                border: 1px solid #a7cbff;
                background-color: #e2f2ff;
            }
        }
    }

    tbody {
        tr {
            td {
                border: 1px solid #a7cbff;

                &:nth-child(2) {
                    width: 300px;
                    height: 80px;

                    img {
                        width: 100px;
                        height: 80px;
                        float: left;
                        margin-top: 10px;
                        margin-left: 50px;
                    }

                    span {
                        width: 100px;
                        float: left;
                        margin-top: 37px;
                    }
                }

                &:nth-child(3) {
                    width: 100px;
                }

                &:nth-child(4) {
                    width: 160px;

                    span {
                        width: 20px;
                        height: 24px;
                        background-color: #E5E5E5;
                        float: left;
                        text-align: center;
                        line-height: 20px;
                        cursor: pointer;

                        &:nth-child(1) {
                            margin-left: 35px;
                        }

                    }

                    input {
                        width: 50px;
                        height: 20px;
                        float: left;
                        text-align: center;
                    }

                }

                &:nth-child(5) {
                    span {
                        color: red;
                        font-weight: 900;
                    }
                }

                &:nth-child(6) {
                    span {
                        cursor: pointer;
                    }
                }
            }
        }
    }
}

.footer {
    width: 100%;
    height: 50px;
    background-color: #E5E5E5;
    margin-top: 10px;

    .left {
        width: 200px;
        height: 100%;
        float: left;
        line-height: 50px;

        input {
            margin: 10px 50px;
        }

        span {
            color: red;
            cursor: pointer;
        }
    }

    .rirght {
        width: 400px;
        height: 100%;
        float: right;

        .allNum {
            width: 130px;
            height: 100%;
            float: left;
            line-height: 50px;
            text-align: center;

            b {
                color: red;
            }

        }

        .allCount {
            width: 133px;
            height: 50px;
            float: left;
            line-height: 50px;
            text-align: center;
        }

        .count {
            b {
                color: red;
            }
        }

        .calc {
            width: 115px;
            height: 50px;
            background-color: #A7CBFF;
            float: right;
            text-align: center;
            line-height: 50px;
            cursor: pointer;
        }
    }
}

.sy {
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
}

.hide {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.bottom {
    width: 75px;
    height: 200px;
    position: fixed;
    right: 10px;
    top: 70%;

    .icon {
        width: 3em;
        height: 3em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        cursor: pointer;
        margin-bottom: 5px;
    }

}

.header {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #e3e4e5;
    border-bottom: solid 1px #ddd;

    .icon {
        width: 1em;
        height: 1em;
        vertical-align: -0.15em;
        fill: currentColor;
        overflow: hidden;
        float: left;
        margin-top: 17px;
        margin-left: 290px;
        margin-right: 10px;
    }

    .back {
        float: left;
        height: 50px;
        cursor: pointer;
        margin-right: 30px;

        &:hover {
            color: red;

        }
    }

    .user {
        float: left;
        height: 50px;
    }
}

.w {
    width: 990px;
    margin: 10px auto;

    #logo {
        float: left;
        position: relative;
        width: 277px;
        padding: 0;

        img {
            margin-top: 2px;
            width: 95px;
            text-indent: -20000px;
        }
    }

    .cart-search {
        float: right;
        border: 2px solid #c91623;
        background: #c91623;
        height: 24px;
        margin-top: 30px;
        overflow: hidden;

        #key {
            border: 0;
            height: 18px;
            line-height: 18px;
            width: 260px;
            padding: 3px 5px;
            outline: none;
        }

        #botton {
            display: inline-block;
            vertical-align: top;
            width: 48px;
            height: 24px;
            background: #c91623;
            text-align: center;
            color: #fff;
            font-weight: 700;
            -webkit-appearance: none
        }
    }
}

.like {
    margin-top: 20px;
    border-radius: 15px;
    background: #e1e1e1;

    #swiper1 {
        // width: 100%;
        // height: 100px;

        .swiper-button-prev {
            display: none;
            background: #c0c0c0;
        }

        .swiper-button-next {
            display: none;
            background: #c0c0c0;
        }

        &:hover {
            .swiper-button-prev {
                display: block;
            }

            .swiper-button-next {
                display: block;
            }
        }

        .contents {
            list-style: none;
            width: 1191px;
            margin: 10px auto;
            overflow: hidden;

            li {
                width: 236px;
                height: 368px;
                border-radius: 10px;
                background: pink;
                border-top: 1px solid transparent;
                float: left;
                margin-right: 2px;
                margin-bottom: 2px;
                text-align: center;
            }
        }

        img {
            width: 198px;
            height: 198px;
            margin: 10px auto;
            display: block;
        }

        .des {
            height: 50px;
            line-height: 25px;
            /* text-align: center; */
            /* background: purple; */
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .price {
            height: 50px;
            line-height: 50px;
            font-size: 30px;
            /* background: red; */
        }

        .btn {
            margin-top: 20px;

            &:hover {
                background: red;
            }
        }

    }
}

#service {
    padding-bottom: 18px;
    background: #eaeaea;
    overflow: hidden;
    margin-top: 50px;

    .wy {
        width: 990px;
        margin: 0 auto;
    }

    dt {
        padding-bottom: 6px;
        font-weight: 700;
        font-size: 14px;
        color: #777;
        height: 22px;
    }

    dd {
        font-size: 12px;
        color: #666;
        height: 22px;
        overflow: hidden;
    }

    .jd-help {
        border-top: solid 1px #dedede;
        border-bottom: solid 1px #dedede;

        .wy {
            width: 990px;
            margin: 0 auto;
        }

        .wrap {
            *zoom: 1;
            padding: 20px 0 20px 55px;
            margin-right: -340px;
        }

        dl {
            width: 206px;
            line-height: 22px;
            float: left;
        }
    }

    .slogen {
        *zoom: 1;
        position: relative;
        height: 42px;
        padding: 30px 0 30px 55px;
        overflow: hidden;

        .item {
            float: left;
            position: relative;
            width: 224px;
            height: 42px;
            line-height: 42px;
            font-size: 18px;
            font-weight: 700;
            text-indent: 46px;
            color: #444;

            i {
                display: block;
                position: absolute;
                top: 0;
                left: 0;
                width: 36px;
                height: 42px;
                text-indent: -9999px;
                background-image: url(../img/精灵图.png);
                background-repeat: no-repeat;
                background-position: 0 0;
            }
        }

        .fore2 i {
            background-position: 0 -43px;

        }

        .fore3 i {
            background-position: 0 -86px;
        }

        .fore4 i {
            background-position: 0 -129px;
        }
    }
}
a{
    &:hover{
        color: red;
    }
}